package com.group1.realtime.util;

import java.util.concurrent.Executor;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class ThreadPoolUtil {

    public static Executor getThreadPool() {
        return new ThreadPoolExecutor(
                300,
                500,
                60,
                TimeUnit.SECONDS,
                new LinkedBlockingQueue<>(100)
        );
    }
}
